﻿using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using AppWPF.Models;

namespace AppWPF.ViewModels
{
    class DatosSalas
    {
        HospitalEntities HostContext = new HospitalEntities();
        ObservableCollection<Sala> salas;

        public ObservableCollection<Sala> Salas
        {
            get
            {
                if (salas == null)
                {
                    salas = new ObservableCollection<Sala>(HostContext.Sala);
                }
                return salas;
            }
            set
            {
                salas = value;
            }
        }

        public DatosSalas()
        {

        }
    }
}
